import { createStore, applyMiddleware, combineReducers } from 'redux'
import list from './reducer/list'
import RootSaga from 'redux-saga'
import Root from './saga'

const createSaga = RootSaga()

let reducer = combineReducers({
    list
})

let store = createStore(reducer, applyMiddleware(createSaga))

createSaga.run(Root)

export default store